import { Component, OnInit } from '@angular/core';
import { Router } from '@angular/router';
import { NavController } from '@ionic/angular';
import { PageTwoPage } from './page-two/page-two.page';

@Component({
  selector: 'app-navigation',
  templateUrl: './navigation.page.html',
  styleUrls: ['./navigation.page.scss'],
})
export class NavigationPage implements OnInit {

  constructor(private router: Router, public navCtrl: NavController) { }

  ngOnInit() {
    
  }

  gotohome(){
    this.router.navigate(['/tabs/tab2'])
  }

  gotopagethree(){
    this.navCtrl.navigateForward('/page-two');
  }

}
